<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/module/jeDate/jedate.css"/>
    <%include("/app/resapi/style.html"){}%>
    <style type="text/css">
        #myTable tr td {
            vertical-align: middle;
        }

        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 0px;height: 100%;" id="app">
    <div class="main-container container-fluid" style="height: 100%;">
        <div class="page-container" style="height: 100%;">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px;height: 100%;">
                <div class="col-md-2 col-sm-2 col-xs-12" style="padding: 0px;height: 100%;">
                    <div class="widget flat radius-bordered"  style="height: 100%;">
                        <div class="widget-header bg-lightred">
                            <span class="widget-caption">文档目录</span>
                        </div>
                        <div class="widget-body" style="height: 90%;overflow: auto;">
                            <ul id="tree" class="ztree"></ul>
                        </div>
                    </div>
                </div>
                <div class="col-md-10 col-sm-10 col-xs-12" style="padding: 0px">
                    <div class="bs-glyphicons">
                        <ul class="bs-glyphicons-list">
                            <template v-for="item in itemList">
                                <li :title="item.titleName">
                                    <span class="glyphicon glyphicon-folder-open"></span>
                                    <div style="font-size: 14px;font-weight: 600;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;word-break: break-all;">{{item.titleName}}</div>
                                    <div style="margin-top: 10px;">
                                        <span class="glyphicon-class" style="display: inline-block;margin-right: 10px"><a onclick='updateItem(this);' :value="item.itemId" style="cursor: pointer">管理</a></span>
                                        <span class="glyphicon-class" style="display: inline-block;margin-right: 10px"><a onclick='deleteItem(this);' :value="item.itemId" style="cursor: pointer">删除</a></span>
                                    </div>
                                </li>
                            </template>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade bs-example-modal-lg" id="itemmodal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myLargeModalLabel">文件类型</h4>
            </div>
            <div class="modal-body" style="height: 500px;overflow: auto;">
                <form class="form-horizontal form-bordered" role="form" id="form1">
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">${i18n('system.sortNo')}：</label>
                        <div class="col-sm-10">
                            <input type="number" class="form-control" name="sortNo" id="sortNo" placeholder="${i18n('system.sortNo')}"> <input type="hidden" class="form-control" name="dbSourceId" id="dbSourceId" placeholder="${i18n('system.sortNo')}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">文件类型：</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="titleName" name="titleName" placeholder="文件类型">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right" style="line-height: 80px;">内网访问人员：</label>
                        <div class="col-sm-8">
                            <textarea class="form-control" readonly="readonly" id="inUserPriv" name="inUserPriv" rows="4"></textarea>
                        </div>
                        <div class="col-sm-2" style="line-height: 80px;">
                            <a style="cursor: pointer;" opt-id="inUserPriv" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('inUserPriv')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right" style="line-height: 80px;">内网访问部门：</label>
                        <div class="col-sm-8">
                            <textarea class="form-control" readonly="readonly" id="inDeptPriv" name="inDeptPriv" rows="4"></textarea>
                        </div>
                        <div class="col-sm-2" style="line-height: 80px;">
                            <a style="cursor: pointer;" opt-id="inDeptPriv" onclick="selectDept(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('inDeptPriv')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right" style="line-height: 80px;">内网访问职务：</label>
                        <div class="col-sm-8">
                            <textarea class="form-control" readonly="readonly" id="inLevelPriv" name="inLevelPriv" rows="4"></textarea>
                        </div>
                        <div class="col-sm-2" style="line-height: 80px;">
                            <a style="cursor: pointer;" opt-id="inLevelPriv" onclick="selectUserLevel(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('inLevelPriv')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right" style="line-height: 80px;">外网访问人员：</label>
                        <div class="col-sm-8">
                            <textarea class="form-control" readonly="readonly" id="outUserPriv" name="outUserPriv" rows="4"></textarea>
                        </div>
                        <div class="col-sm-2" style="line-height: 80px;">
                            <a style="cursor: pointer;" opt-id="outUserPriv" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('outUserPriv')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right" style="line-height: 80px;">外网访问部门：</label>
                        <div class="col-sm-8">
                            <textarea class="form-control" readonly="readonly" id="outDeptPriv" name="outDeptPriv" rows="4"></textarea>
                        </div>
                        <div class="col-sm-2" style="line-height: 80px;">
                            <a style="cursor: pointer;" opt-id="outDeptPriv" onclick="selectDept(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('outDeptPriv')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right" style="line-height: 80px;">外网访问职务：</label>
                        <div class="col-sm-8">
                            <textarea class="form-control" readonly="readonly" id="outLevelPriv" name="outLevelPriv" rows="4"></textarea>
                        </div>
                        <div class="col-sm-2" style="line-height: 80px;">
                            <a style="cursor: pointer;" opt-id="outLevelPriv" onclick="selectUserLevel(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('outLevelPriv')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">内网排除人员：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" id="excInUser" name="excInUser" readonly="readonly" placeholder="内网排除人员">
                        </div>
                        <div class="col-sm-2" style="line-height: 34px;">
                            <a style="cursor: pointer;" opt-id="excInUser" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('excInUser')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">外网排除人员：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" id="excOutUser" name="excOutUser" readonly="readonly" placeholder="外网排除人员">
                        </div>
                        <div class="col-sm-2" style="line-height: 34px;">
                            <a style="cursor: pointer;" opt-id="excOutUser" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('excOutUser')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">文件管理组(内)：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" readonly="readonly" id="fileManageGroup" name="fileManageGroup" placeholder="文件管理组">
                        </div>
                        <div class="col-sm-2" style="line-height: 34px;">
                            <a style="cursor: pointer;" opt-id="fileManageGroup" onclick="selectUserPriv(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('fileManageGroup')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">文件管理组(外)：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" readonly="readonly" id="fileManageGroupOut" name="fileManageGroupOut" placeholder="文件管理组">
                        </div>
                        <div class="col-sm-2" style="line-height: 34px;">
                            <a style="cursor: pointer;" opt-id="fileManageGroupOut" onclick="selectUserPriv(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('fileManageGroupOut')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">管理人员：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" readonly="readonly" id="fileManageUser" name="fileManageUser" placeholder="管理员人员">
                        </div>
                        <div class="col-sm-2" style="line-height: 34px;">
                            <a style="cursor: pointer;" opt-id="fileManageUser" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('fileManageUser')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">创建人员：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" readonly="readonly" id="fileCreateUser" name="fileCreateUser" placeholder="创建人员">
                        </div>
                        <div class="col-sm-2" style="line-height: 34px;">
                            <a style="cursor: pointer;" opt-id="fileCreateUser" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                            <a style="cursor: pointer;" onclick="clearSelect('fileCreateUser')">${i18n('system.clear')}</a>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                <button type="button" class="btn btn-primary js-save">${i18n('save')}</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
</body>
<%include("/app/resapi/sysjs.html"){} %>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/file/filemapitem.js"></script>
</html>
